package com.learning.javaweb_springboot_test.service;


//service层，利用entity实体对象，声明对数据库操作，但不直接和数据库打交道，是利用mapper层接口打交道

import com.learning.javaweb_springboot_test.entity.Student;
import org.springframework.stereotype.Service;

@Service
public interface StudentService {

    //插入一个学生
    public void addStudent(Student student);

    //根据id查询
    public Student queryStudentById(Integer id);
}
